package com.testlio.assignment.repository;

import com.testlio.assignment.model.IssueRevision;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface IssueRevisionRepository extends JpaRepository<IssueRevision, Long> {
    List<IssueRevision> findByIssueIdOrderByIdAsc(Integer issueId);
    List<IssueRevision> findByIssueIdOrderByUpdatedAtDesc(Integer issueId);

}
